import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        user: null,
        badge: 0
    },
    getters: {

    },
    mutations: {
        setuser(state, user) {
            return state.user = user
        },
        setbage(state, badge) {
            return state.badge = badge
        },

    },
    actions: {}
})